home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / mac / ch11 / 11fig04.wrl < prev   
Text File  |  1996-09-23  |  1KB  |  58 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright 1997 By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Translated Shape
  8.         Transform {
  9.             translation 20.0  0.0  0.0
  10.             bboxCenter   0.0  0.0  0.0
  11.             bboxSize    25.0 25.0 25.0
  12.             children [
  13.                 DEF Widest Shape {
  14.                     appearance Appearance {
  15.                         material Material {
  16.                             diffuseColor 0.0 1.0 0.0
  17.                         }
  18.                     }
  19.                     geometry Box {
  20.                         size 25.0 2.0 2.0
  21.                     }
  22.                 },
  23.                 DEF Tallest Shape {
  24.                     appearance Appearance {
  25.                         material Material {
  26.                             diffuseColor 1.0 1.0 0.0
  27.                         }
  28.                     }
  29.                     geometry Box {
  30.                         size 2.0 25.0 2.0
  31.                     }
  32.                 },
  33.                 DEF Deepest Shape {
  34.                     appearance Appearance {
  35.                         material Material {
  36.                             diffuseColor 0.5 1.0 0.0
  37.                         }
  38.                     }
  39.                     geometry Box {
  40.                         size 2.0 2.0 25.0
  41.                     }
  42.                 }
  43.             ]
  44.         },
  45.     # Rotated Shape
  46.         Transform {
  47.             rotation     0.0  1.0  0.0  0.785
  48.             bboxCenter   0.0  0.0  0.0
  49.             bboxSize    25.0 25.0 25.0
  50.             children [
  51.                 USE Widest,
  52.                 USE Tallest,
  53.                 USE Deepest
  54.             ]
  55.         }
  56.     ]
  57. }
  58.